<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 111
  Date: 2023/6/4
  Time: 17:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加</title>
</head>
<body>
<form action="/car/save" method="post">
  <table>
    <tr>
      <th>车辆名称</th>
      <td><input type="text" name="cname" required></td>
    </tr>

    <tr>
      <th>所属品牌</th>
      <td>
        <select name="brandid" id="" required>
          <option value="">请选择</option>
          <c:forEach items="${list}" var="brand">
          <option value="${brand.brandID}">${brand.brandName}</option>
          </c:forEach>
        </select>
      </td>
    </tr>

    <tr>
      <th>车辆简介</th>
      <td><input type="text" name="content" required></td>
    </tr>

    <tr>
      <th>价格</th>
      <td><input type="text" name="price" required></td>
    </tr>

    <tr>
      <th>录入时间</th>
      <td><input type="date" name="date" required></td>
    </tr>

    <tr>
      <td colspan="2"><input type="submit" name="确定"></td>
    </tr>
  </table>
</form>
</body>
</html>
